package com.crm.business.crm.mapper;


import com.crm.common.crm.entity.BO.HpCrmSetupLeadsNumBO;
import com.crm.common.crm.entity.VO.HpCrmSetupLeadsNumVO;
import com.crm.business.servlet.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface HpCrmLeadsSetUpMapper  extends BaseMapper {

    public HpCrmSetupLeadsNumVO selectHpCrmSetupLeadsNumByownerUserId(Integer ownerUserId);


    /**
     * 查询线索分配设置
     *
     * @param id 线索分配设置ID
     * @return 线索分配设置
     */
    public HpCrmSetupLeadsNumVO selectHpCrmSetupLeadsNumById(Long id);
    /**
     * 新增线索分配设置
     *
     * @param hpCrmSetupLeadsNum 线索分配设置
     * @return 结果
     */
    public int insertHpCrmSetupLeadsNum(HpCrmSetupLeadsNumBO hpCrmSetupLeadsNum);

    /**
     * 修改线索分配设置
     *
     * @param hpCrmSetupLeadsNum 线索分配设置
     * @return 结果
     */
    public int updateHpCrmSetupLeadsNum(HpCrmSetupLeadsNumBO hpCrmSetupLeadsNum);

    /**
     * 删除线索分配设置
     *
     * @param id 线索分配设置ID
     * @return 结果
     */
    public int deleteHpCrmSetupLeadsNumById(Long id);

    /**
     * 批量删除线索分配设置
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHpCrmSetupLeadsNumByIds(String[] ids);
}
